package com.yh.homestay.common;

import com.yh.homestay.pojo.SysLog;

public class SysLogRustlt {
    private Integer code;
    private String message;
    private SysLog sysLog;

    public SysLogRustlt() {
    }

    public SysLogRustlt(Integer code) {
        this.code = code;
    }

    public SysLogRustlt(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public SysLogRustlt(Integer code, String message, SysLog sysLog) {
        this.code = code;
        this.message = message;
        this.sysLog = sysLog;
    }

    public static SysLogRustlt ok(){
        return new SysLogRustlt(200);
    }
    public static SysLogRustlt build(Integer code, String msg){
        return new SysLogRustlt(200,msg);
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public SysLog getSysLog() {
        return sysLog;
    }

    public void setSysLog(SysLog sysLog) {
        this.sysLog = sysLog;
    }
}
